package com.usian.behavior.controller.v1;

import com.usian.behavior.service.IApReadBehaviorService;
import com.usian.common.dtos.ResponseResult;
import com.usian.model.behavior.dtos.ReadBehaviorDto;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * APP阅读行为表 前端控制器
 * </p>
 *
 * @author usian
 * @since 2022-07-18
 */
@RestController
@RequestMapping("/api/v1/read_behavior")
@Api(tags = "APP阅读行为表接口")
@CrossOrigin
public class ApReadBehaviorController{

    @Autowired
    private IApReadBehaviorService apReadBehaviorService;

    /**
     * 阅读行为
     */
    @PostMapping
    public ResponseResult read(@RequestBody ReadBehaviorDto dto){
        apReadBehaviorService.read(dto);
        return ResponseResult.ok();
    }

}
